package com.addplus.townmall.server.api.mapper.exam;

import com.addplus.townmall.server.api.model.exam.Paper;
import com.addplus.townmall.server.api.model.exam.PaperExtend;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PaperMapper extends BaseAddMapper<Paper> {
    @Select("SELECT * FROM paper WHERE is_deleted=0")
    List<PaperExtend> getAllPaperByPage(IPage page);
}
